package com.ssy.lingxi.dataauth.handler;

import com.ssy.lingxi.component.redis.service.IRedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 用于在非Spring托管的类中，使用注入的RedisUtils bean
 * @author 万宁
 * @version 2.0.0
 * @date 2021-03-30
 */
@Component
public class RedisServiceHolder {
    public static IRedisUtils redisUtils;

    @Autowired
    public void setRedisService(IRedisUtils redisUtils)
    {
        RedisServiceHolder.redisUtils = redisUtils;
    }
}
